package Homework.Date7_03;

import java.io.Serializable;
import java.sql.Date;

public class Student implements Serializable {
	private static final long serialVersionUID = 1L;
	private long stuno;
	private String sname;
	private String sex;
	private long telephone;
	private long gradeid;
	private Date enterdate;
	private String fromcity;

	// 无参
	public Student() {

	}

	// 构造方法
	public Student(long stuno, String sname, String sex, long telephone, long gradeid, Date enterdate,
			String fromcity) {
		this.stuno = stuno;
		this.sname = sname;
		this.sex = sex;
		this.telephone = telephone;
		this.gradeid = gradeid;
		this.enterdate = enterdate;
		this.fromcity = fromcity;
	}

	// 缺少stuno的构造
	public Student(String sname, String sex, long telephone, long gradeid, Date enterdate, String fromcity) {
		this.sname = sname;
		this.sex = sex;
		this.telephone = telephone;
		this.gradeid = gradeid;
		this.enterdate = enterdate;
		this.fromcity = fromcity;
	}

	public long getStuno() {
		return stuno;
	}

	public void setStuno(long stuno) {
		this.stuno = stuno;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public long getTelephone() {
		return telephone;
	}

	public void setTelephone(long telephone) {
		this.telephone = telephone;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	public Date getEnterdate() {
		return enterdate;
	}

	public void setEnterdate(Date enterdate) {
		this.enterdate = enterdate;
	}

	public String getFromcity() {
		return fromcity;
	}

	public void setFromcity(String fromcity) {
		this.fromcity = fromcity;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String toString() {
		return "学生[stuno=" + stuno + ", sname=" + sname + ", sex=" + sex + ", telephone=" + telephone + ", gradeid="
				+ gradeid + ", enterdate=" + enterdate + ", fromcity=" + fromcity + "]";
	}
}
